.PHONY:all
all:proto_server proto_client


proto_server:protobuf_server.cpp ../../third_part/Muduo/muduo/examples/protobuf/codec/codec.cc request.pb.cc
	g++ -o $@ $^ -std=c++14 -I ../../third_part/Muduo/build/release-install-cpp11/include   -L ../../third_part/Muduo/build/release-install-cpp11/lib -lmuduo_net -lmuduo_base -lpthread -lprotobuf -lz

proto_client:protobuf_client.cpp ../../third_part/Muduo/muduo/examples/protobuf/codec/codec.cc request.pb.cc
	g++ -o $@ $^ -std=c++14 -I ../../third_part/Muduo/build/release-install-cpp11/include   -L ../../third_part/Muduo/build/release-install-cpp11/lib -lmuduo_net -lmuduo_base -lpthread -lprotobuf -lz
.PHONY:clean
clean:
	rm -f proto_server proto_client
